package com.wct.spzx.manager.service.impl;

import cn.dev33.satoken.secure.SaSecureUtil;
import com.wct.spzx.manager.service.SecureService;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * @author chang
 * @date 2023/12/6/006 23:06
 */
@Service
public class SecureServiceImpl implements SecureService {

    HashMap<String, String> map;
    @Override
    public String encrypt(String data) {
        return null;
    }

    @Override
    public String decrypt(String data) {
        return null;
    }

    @Override
    public String getPublicKey() throws Exception{
        map = SaSecureUtil.rsaGenerateKeyPair();
        return map.get("public");
    }
}
